<?php
Yii::app()->clientScript->registerScriptFile('https://maps.googleapis.com/maps/api/js?sensor=true&language=es');
//Yii::app()->clientScript->registerScriptFile('https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true');
$cs = Yii::app()->getClientScript();
$baseUrl = Yii::app()->theme->baseUrl;
$assetjs = "/js/site/index.js";
Yii::app()->clientScript->registerScriptFile($baseUrl . $assetjs);
?>
<!--<style>
    .google-maps {
        position: relative;
        padding-bottom: 75%; // This is the aspect ratio
        height: 0;
        overflow: hidden;
    }
    .google-maps iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
</style>-->


<script>
    var empresas =<?php echo json_encode($points); ?>
</script>


    <div class="row-fluid">

        <div class="sorting-filters" id="fluid_info">
            <?php
            $modelEmpresas=new Entidad;
            $form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
//                'type' => 'inline',
                'id' => 'entidad-form',
                'enableAjaxValidation' => true,
                'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
                'enableClientValidation' => false,
//                'htmloptions' => array("class" => "form-inline")
            ));
            ?>
            <div class="form-group">
                <label>Categoria</label>

                <?php
                $htmlOptions = array('class' => "span12 form-control");
                if ($modelEmpresas->categoria_id) {
                    $pais_seleccionado = Pais::model()->findByPk($modelDireccion->pais_id);
                    $htmlOptionsPais = array_merge($htmlOptions, array(
                        'selected-text' => $pais_seleccionado->nombre
                    ));
                }
                echo $form->hiddenField($modelEmpresas, 'categoria_id', $htmlOptions);
                ?>
                <?php // echo $form->error($modelDireccion, 'pais_id'); ?>    

            </div>
            <div class="form-group">
                <label>Nombre Empresa</label>

                <?php
                $htmlOptionsNombre = array('class' => "form-control", "placeholder" => "Nombre de la Empresa");
                echo $form->hiddenField($modelEmpresas, 'id', $htmlOptions);
                ?>

            </div>

            <div class="form-group">
                <button type="button" class="btn btn-gray btn-sm" id="btnBuscarEmpresa">Buscar</button>

            </div>
            <?php $this->endWidget(); ?>
        </div>
    </div>
 
 

